From b29d3d40827f29957ec2e4a3f37024d812563238 Mon Sep 17 00:00:00 2001 From: Richard Hult Date: Mon, 29 Sep 2008 10:41:07 +0000 Subject: [PATCH] =?utf8?q?Bug=20554141=20=E2=80=93=20uninitialized=20data?= =?utf8?q?=20use/free=20in=20gtkclipboard-quartz.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2008-09-29 Richard Hult Bug 554141 – uninitialized data use/free in gtkclipboard-quartz.c * gtk/gtkclipboard-quartz.c: (gtk_clipboard_wait_for_contents): Patch from Jon A. Cruz to initialize the allocated selection data. svn path=/trunk/; revision=21540 --- ChangeLog | 7 +++++++ gtk/gtkclipboard-quartz.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a0a0b31674..56de2dcfc9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-09-29 Richard Hult + + Bug 554141 – uninitialized data use/free in gtkclipboard-quartz.c + + * gtk/gtkclipboard-quartz.c: (gtk_clipboard_wait_for_contents): + Patch from Jon A. Cruz to initialize the allocated selection data. + 2008-09-27 Matthias Clasen Bug 339367 – Incorrect spotlocation diff --git a/gtk/gtkclipboard-quartz.c b/gtk/gtkclipboard-quartz.c index 2a8b7ac282..bc003bcd3e 100644 --- a/gtk/gtkclipboard-quartz.c +++ b/gtk/gtkclipboard-quartz.c @@ -890,7 +890,7 @@ gtk_clipboard_wait_for_contents (GtkClipboard *clipboard, length = [types count] * sizeof (GdkAtom); - selection_data = g_slice_new (GtkSelectionData); + selection_data = g_slice_new0 (GtkSelectionData); selection_data->selection = clipboard->selection; selection_data->target = target; -- 2.30.2